﻿using Architecture.Domain.Dto.UserInfoRoleDto;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Architecture.Domain.Service.UserInfoRoleServices
{
    public interface IUserInfoRoleService
    {

        Task<int> AddUserInfoRole(AddUserInfoRole addUserInfoRole);

        /// <summary>
        /// 反填角色对应的部门信息
        /// </summary>
        /// <param name="roleId"></param>
        /// <returns></returns>
        Task<List<UserInfoRoleDepartmentDto>> GetDepartmentByRoleId(int roleId);

        /// <summary>
        /// 反填角色对应的用户信息
        /// </summary>
        /// <param name="roleId"></param>
        /// <returns></returns>
        Task<object> GetUserInfoByRoleId(int roleId);

        public Task<int> DeletedUserInfoRole(int roleId, int userId);
    }
}
